package com.huohuzhihui.system.domain;

import com.huohuzhihui.common.annotation.Excel;
import com.huohuzhihui.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 数据集对象 sys_dataset
 *
 * @author yepanpan
 * @date 2020-12-04
 */
@Getter
@Setter
public class SysDataset extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 自增长主键ID
     */
    private Long id;

    /**
     * 部门代码
     */
    @Excel(name = "部门代码")
    private String code;

    /**
     * 类型
     */
    @Excel(name = "类型")
    private String type;

    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    private String title;

    /**
     * 查询SQL
     */
    @Excel(name = "查询SQL")
    private String sqls;

    /**
     * 支持参数
     */
    @Excel(name = "支持参数")
    private String param;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long listSort;

    /**
     * 说明
     */
    @Excel(name = "说明")
    private String comment;

    /**
     * 状态
     */
    @Excel(name = "状态")
    private String status;

    private String where;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("type", getType())
                .append("title", getTitle())
                .append("sqls", getSqls())
                .append("param", getParam())
                .append("listSort", getListSort())
                .append("comment", getComment())
                .append("status", getStatus())
                .toString();
    }
}
